package com.wm.command;

/**
 * @ClassName: ConcreteCommand
 * @Description: 接收命令并执行
 * @Author: WM
 * @Date: 2023/5/6 9:09
 */
public class ConcreteCommand implements Command {
    private Receiver receiver;

    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exe(String command) {
        receiver.action(command);
    }
}
